﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using DblogStudio.GUI.Utils;

namespace DblogStudio
{
    static class Program
    {
        public static GUI.FormMain FormMain = null;
        public static bool KiemTraThoiKhoaBieuDaiHoc = true;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.ThreadException += Application_ThreadException;
            Application.SetCompatibleTextRenderingDefault(false);
            Console.WriteLine("Started program");
            //Console.ReadLine();
            Program.FormMain = new GUI.FormMain();
            Application.Run(Program.FormMain);
            //Application.Run(new GUI.DuLieu.FormQuanLyChiTietMay());
        }
        static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e)
        {
            DialogUtils.ShowError(e.Exception.Message + e.Exception.StackTrace);
        }
    }
}
